import service from "@/utils/request"



export interface PackingMaterialsInOfStorageInterface{
    deptName:string,
    inStorageEndTime:string,
    inStorageStartTime:string,
    lotNo:string,
    mtlName:string,
    pageNum:number,
    pageSize:number,
    slipNo:string,
    slipReason:string,
    typeName:string,
    vendorName:string
}

export interface PackingMaterialsInOf{
    slipNo: string,
    slipDate: string,
    slipReason: string,
    deptName: string,
    mtlNo: string,
    lotNo: string,
    mtlColor: null,
    mtlName: string,
    mtlSpec: string,
    mtlUnit: string,
    qty: number,
    price: number,
    amt: number,
    chiName: string
}

export interface PackingMaterialsInOfS{
    total?: number,
    qtyTotal: number,
    list: PackingMaterialsInOf[ ]
}

export const PackingMaterialsInOfStorage = (parms:PackingMaterialsInOfStorageInterface) => {
    return service.post<any,PackingMaterialsInOfS>('/pack/listPcPackMaterialInStorage',parms)
}


export const FindDate = () => {
    return service.get<any,any>('/pack/getPcPackMaterialInStorageCondition')
}